<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>音乐示例</title>
</head>
<body>
<h2>Playing The Object</h2>
<div><embed height="100" width="100" src="../../statics/images/wlry.mp3"></embed>
<p><b>注释：</b>浏览器可能需要安装插件以后，才能播放该文件。</p>  </div>
<div id="aaaaa" align="center"></div>
<a href=# onclick="playmustop()">stop</a><br/>
<a href="#" onclick="playmu('../../statics/images/wlry.mp3')">try1</a><br/>
<a href="#" onclick="playmu('2.mp3')">try2</a><br/>
<script type="text/javascript">
	//播放音乐 路径应该写正确
	function playmu(k){
		aaaaa.innerHTML="<EMBED src=\""+k+"\" style=\"display:none; HEIGHT: 40px; WIDTH: 70px\" type=audio/mpeg AUTOSTART=\"1\" loop=\"0\"></EMBED><p>playing : "+k+"</p>";
	}
	//停止播放
	function playmustop(){
		aaaaa.innerHTML="";
	}
</script>

</body>
</html>